<?php
namespace app\index\controller;

use think\Controller;
use think\Db;

class Content extends Controller
{
    public function index()
    {
    	//接受gid
		$gid = input('param.gid');
		$field = db('goods')->where('gid',$gid)->find();
		$field['color'] = explode('|',$field['color']);
		$field['size'] = explode('|',$field['size']);
		$field['ggpic'] = explode('|',$field['ggpic']);
//		halt($field);
		$this->assign('field',$field);
		//goods数据分配
		$lconten = Db::table('shop_goods')->limit(6,6)->select();//conten
		return view('',compact('lconten'));
    }

}
